package com.yunxin.core.domain.service.contact;

import com.yunxin.core.domain.model.contact.MessageCallback;
import com.yunxin.core.domain.model.contact.SendMessage;

/**
 * @author zero°
 * @since 2023-06-04
 */
public interface SendMessageService {

    /**
     * 发送消息
     * @param sendMessage sendMessageDTO
     */
    void sendMessage(SendMessage<?> sendMessage);

    /**
     * 消息回调处理
     * @param messageCallback messageCallbackDTO
     */
    void messageCallback(MessageCallback messageCallback);

    /**
     * 获取发送渠
     * @return Integer
     */
    Integer sourceType();
}
